﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="GiaoXuLanTranh_MucVu.Models" %>
<%@ Import Namespace="InfoTech.Mvc.LanTranh.MucVu.Models" %>
<%
    string current = "";
    var header = ViewData[Header.Key] as Header;
    if (header != null) current = header.CurentCommon;
    GIAODANModel giaodanModel = ViewData["GiaoDan"] as GIAODANModel;
    if (giaodanModel != null)
    {
        //GIAODAN giaodan = giaodanModel.GetBussiness();
        //HOGIADINH hogiadinh = giaodan.REF_HOGIADINH.FirstOrDefault();
%>
<ul class="shortcut-buttons-set">
    <li><a class="shortcut-button" href="/AdminCP/GiaDinhCongGiao/AddHoGiaDinh/<%=giaodanModel.MAGIAODAN%>">
        <span>
            <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>Add_HoGiaDinh.png"
                alt="icon" /><br />
            Tách Hộ Mới </span></a></li>
    <li><a class="shortcut-button" href="/AdminCP/GiaDinhCongGiao/NhapNhanKhau/<%=giaodanModel.MAGIAODAN%>">
        <span>
            <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>NhapNhanKhau.png"
                alt="icon" /><br />
            Sát Nhập Nhân Khẩu </span></a></li>
    <li><a class="shortcut-button <%=current=="GiaoDan"?"shortcut-button-current":"" %>"
        href="/AdminCP/GiaDinhCongGiao/GiaoDan"><span>
            <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>GiaoDan.png" alt="icon" /><br />
            Giáo Dân </span></a></li>
    <li><a class="shortcut-button <%=current=="HoGiaDinh"?"shortcut-button-current":"" %>"
        href="/AdminCP/GiaDinhCongGiao/HoGiaDinh"><span>
            <img src="<%=Html.AreaImagesPath("AdminCP","GiaDinhCongGiao") %>HoGiaDinh.png" alt="icon" /><br />
            Gia Đình </span></a></li>
    <li><a class="shortcut-button" href="javascript:Report('<%=Url.Action("ThongTinGiaoDan","Reports",new {id=giaodanModel.MAGIAODAN,area="AdminCP"}) %>');">
        <span>
            <img src="<%=Html.AreaImagesPath("AdminCP","BiTich") %>RuaToi.png" alt="icon" /><br />
            Báo Cáo </span></a></li>
</ul>
<div class="clear">
</div>
<script language="javascript" type="text/javascript">
    function Report(url) {
        window.open(url, 'giaodan', "resizable=yes,toolbar=no,scrollbars=yes,menubar=no,status=yes,directories=no,width=1000,height=600,left=20,top=20");
    }
</script>
<!-- End .clear -->
<%} %>